package com.googlecode.boliang.Q04;

public class BTNode {
	
	protected int nodeValue; 
	protected BTNode leftChild; 
	protected BTNode rightChild;
	
	public BTNode(int nodeValue, BTNode leftChild, 
			BTNode rightChild) {
		this.nodeValue = nodeValue; 
		this.leftChild = leftChild; 
		this.rightChild = rightChild;
	}
	
	public int getNodeValue() {
		return nodeValue;
	}

	public void setNodeValue(int nodeValue) {
		this.nodeValue = nodeValue;
	}

	public BTNode getLeftChild() {
		return leftChild;
	}

	public void setLeftChild(BTNode leftChild) {
		this.leftChild = leftChild;
	}

	public BTNode getRightChild() {
		return rightChild;
	}

	public void setRightChild(BTNode rightChild) {
		this.rightChild = rightChild;
	}


	
	

}
